package com.yanqu.road.entity.activity.specialcookboy.sign;

import com.yanqu.road.entity.activity.ActivityConfig;
import com.yanqu.road.utils.property.Property;
import com.yanqu.road.utils.property.PropertyHelper;

import java.util.Map;

public class specialCookBoySignConfig {
    private String supplementarySignatureNeed; //补签需要道具
    private int patronId; //投放门客id
    private String patronTransToItem; //门客转换道具
    private String mailTitle; //邮件标题
    private String mailContent; //邮件内容
    private Property property;

    public specialCookBoySignConfig(Map<String, ActivityConfig> configMap) {
        supplementarySignatureNeed = configMap.get("CHINESECHEF_SUPPLEMENTARY_SIGNATURE_CONSUME").getValue();
        patronId = configMap.get("CHINESECHEF_PATRONS_ID").getIntValue();
        patronTransToItem = configMap.get("CHINESECHEF_PATRONS_TRANSFORM_ITEM").getValue();
        mailTitle = configMap.get("CHINESECHEF_GOODS_AUTO_CONSUME_TITLE").getValue();
        mailContent = configMap.get("CHINESECHEF_GOODS_AUTO_CONSUME_CONTENT").getValue();
        property = PropertyHelper.parseStringToProperty(supplementarySignatureNeed);
    }

    public String getSupplementarySignatureNeed() {
        return supplementarySignatureNeed;
    }

    public int getPatronId() {
        return patronId;
    }

    public String getPatronTransToItem() {
        return patronTransToItem;
    }

    public String getMailTitle() {
        return mailTitle;
    }

    public String getMailContent() {
        return mailContent;
    }

    public Property getProperty() {
        return property;
    }
}
